package com.bestcem.xm.member.grpc.service.param.extendfield;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.*;

import javax.validation.constraints.*;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description 查询联系人扩展字段请求参数
 * @date 2021/7/20
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ListDisplayFieldEnumItemsParam {
    /**
     * 企业标识
     */
    @NotBlank(message = "企业标识不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式错误")
    private String orgId;

    /**
     * 联系人类型
     */
    @NotBlank(message = "扩展字段标识不能为空")
    private String fieldId;

    @NotNull(message = "展示状态不能为空")
    @Min(value = 0, message = "展示状态异常")
    @Max(value = 1, message = "展示状态异常")
    private Integer displayStatus;
}
